package com.tsmti.doctor.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.doctor.entity
 * @Class：PimsReqFieldDoctor
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 15:43
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_REQ_FIELD_DOCTOR")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsReqFieldDoctor extends BaseDataEntity<Long> {
    /**
     *主键
     */
    private Long id;
    /**
     *申请ID
     */
    private Long requisitionId;
    /**
     *字段ID
     */
    private Long fieldId;
    /**
     *对象ID
     */
    private String reqfElementId;
    /**
     *对象名称
     */
    private String reqfElementName;
    /**
     *对象类型
     */
    private String reqfElementType;
    /**
     *显示级别
     */
    private String reqfShowLevel;
    /**
     *上级对象ID
     */
    private String reqfpElementId;
    /**
     *默认值
     */
    private String reqfDefaultValue;
    /**
     *显示顺序
     */
    private String reqfSort;
    /**
     *值
     */
    private String reqfValue;
    /**
     *备注信息
     */
    private String reqfRemark;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_REQ_FIELD_DOCTOR")
    @SequenceGenerator(name = "SEQ_REQ_FIELD_DOCTOR", sequenceName = "SEQ_REQ_FIELD_DOCTOR", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "REQUISITIONID")
    public Long getRequisitionId() {
        return requisitionId;
    }

    public void setRequisitionId(Long requisitionId) {
        this.requisitionId = requisitionId;
    }

    @Basic
    @Column(name = "FIELDID")
    public Long getFieldId() {
        return fieldId;
    }

    public void setFieldId(Long fieldId) {
        this.fieldId = fieldId;
    }

    @Basic
    @Column(name = "REQFELEMENTID")
    public String getReqfElementId() {
        return reqfElementId;
    }

    public void setReqfElementId(String reqfElementId) {
        this.reqfElementId = reqfElementId;
    }

    @Basic
    @Column(name = "REQFELEMENTNAME")
    public String getReqfElementName() {
        return reqfElementName;
    }

    public void setReqfElementName(String reqfElementName) {
        this.reqfElementName = reqfElementName;
    }

    @Basic
    @Column(name = "REQFELEMENTTYPE")
    public String getReqfElementType() {
        return reqfElementType;
    }

    public void setReqfElementType(String reqfElementType) {
        this.reqfElementType = reqfElementType;
    }

    @Basic
    @Column(name = "REQFSHOWLEVEL")
    public String getReqfShowLevel() {
        return reqfShowLevel;
    }

    public void setReqfShowLevel(String reqfShowLevel) {
        this.reqfShowLevel = reqfShowLevel;
    }

    @Basic
    @Column(name = "REQFPELEMENTID")
    public String getReqfpElementId() {
        return reqfpElementId;
    }

    public void setReqfpElementId(String reqfpElementId) {
        this.reqfpElementId = reqfpElementId;
    }

    @Basic
    @Column(name = "REQFDEFAULTVALUE")
    public String getReqfDefaultValue() {
        return reqfDefaultValue;
    }

    public void setReqfDefaultValue(String reqfDefaultValue) {
        this.reqfDefaultValue = reqfDefaultValue;
    }

    @Basic
    @Column(name = "REQFSORT")
    public String getReqfSort() {
        return reqfSort;
    }

    public void setReqfSort(String reqfSort) {
        this.reqfSort = reqfSort;
    }

    @Basic
    @Column(name = "REQFVALUE")
    public String getReqfValue() {
        return reqfValue;
    }

    public void setReqfValue(String reqfValue) {
        this.reqfValue = reqfValue;
    }

    @Basic
    @Column(name = "REQFREMARK")
    public String getReqfRemark() {
        return reqfRemark;
    }

    public void setReqfRemark(String reqfRemark) {
        this.reqfRemark = reqfRemark;
    }
}
